package com.decent.ejfadmin.common.enums;

/**
 * @author JunLei He
 */
public enum SupplyCardStatus {
    /**
     * 在售
     */
    selling(0),
    /**
     * 成功
     */
    success(1),
    /**
     * 失败
     */
    fail(2),
    /**
     * 可售
     */
    preSell(3),
    /**
     * 未预判面值
     */
    preJudge(4),
    /**
     * 预判面值不符
     */
    wrongFace(5),
    /**
     * 等待慢速试充
     */
    waitSlowTrySell(7),
    /**
     * 慢速试充,7->8
     */
    slowTrySell(8),
    /**
     * 待结算
     */
    waitSettlement(9),
    /**
     * 补结算
     */
    makeup(50),
    /**
     * 纠纷中
     */
    disputing(10);
    private Integer status;

    SupplyCardStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static boolean stillDealing(Integer status) {
        switch (status) {
            case 1:
            case 2:
                return false;
            default:
                return true;
        }
    }
}
